<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			window.onload = function() {
				div01.textContent = "abc"
			}

			window.onresize = function() {
				console.log("页面尺寸改变了！")
			}
		</script>

		<div id="div01">
			123
		</div>
	</body>
</html>
